#ifndef SETMASTER_DIALOG_H
#define SETMASTER_DIALOG_H

#include <QDialog>
#include "serial_port/serial_tx_thread.h"
#include "serial_port/serial_rx_thread.h"

namespace Ui {
class SetMaster_Dialog;
}

class SetMaster_Dialog : public QDialog
{
    Q_OBJECT

signals:
    void signal_write_sp_tx_queue(char *s,unsigned int len);

public:
    explicit SetMaster_Dialog(Serial_Tx_Thread *tx_thread , Serial_Rx_Thread *rx_thread , QWidget *parent = nullptr);
    ~SetMaster_Dialog();

public slots:
    void slot_get_sys_config(unsigned char *p_data, unsigned char len);
    void slot_set_sys_config(unsigned char *p_data, unsigned char len);

private slots:
    void on_pushButton_get_params_clicked();
    void on_pushButton_set_params_clicked();

private:
    Ui::SetMaster_Dialog *ui;

    Serial_Tx_Thread *tx_thread;
    Serial_Rx_Thread *rx_thread;
};

#endif // SETMASTER_DIALOG_H
